package com.wujunshen.dumpling.database.mysql.common;

import java.util.Properties;

public interface IProperties {
  /** 获取驱动 */
  default String getDriver(Properties properties) {
    return properties.get("driver").toString();
  }

  /** 获取URL */
  default String getUrl(Properties properties) {
    return properties.get("url").toString();
  }

  /** 获取password */
  default String getPassword(Properties properties) {
    return properties.get("password").toString();
  }

  /** 获取userName */
  default String getUserName(Properties properties) {
    return properties.get("userName").toString();
  }

  /** 获取schema */
  default String getSchema(Properties properties) {
    return properties.get("schema").toString();
  }
}
